package org.lonetree.tc.dao.hibernate.dto;

import java.util.HashSet;
import java.util.Set;

public class TextbookDTO{

	private int id;
	private String title;
	private String isbn13;
	private Set<SectionDTO> sections = new HashSet<SectionDTO>();
	private Set<SourceDTO> sources = new HashSet<SourceDTO>();
	private Set<TextbookCommentDTO> comments = new HashSet<TextbookCommentDTO>();
	private Set<UserDTO> users = new HashSet<UserDTO>();
	private boolean optional;
	private String authors;
	
	public TextbookDTO(){
		
	}
	
	public int getId(){
		return id;
	}

	
	public String getAuthors(){
		return authors;
	}

	
	public void setAuthors(String authors){
		this.authors = authors;
	}

	public void setId(int id){
		this.id = id;
	}

	public String getIsbn13(){
		return isbn13;
	}
	
	public void setIsbn13(String isbn13){
		this.isbn13 = isbn13;
	}
	
	public String getTitle(){
		return title;
	}
	
	public void setTitle(String title){
		this.title = title;
	}
	
	public Set<SectionDTO> getSections(){
		return sections;
	}
	
	public void setSections(Set<SectionDTO> sections){
		this.sections = sections;
	}

	public Set<SourceDTO> getSources(){
		return sources;
	}

	public void setSources(Set<SourceDTO> sources){
		this.sources = sources;
	}

	public Set<TextbookCommentDTO> getComments(){
		return comments;
	}
	
	public void setComments(Set<TextbookCommentDTO> comments){
		this.comments = comments;
	}
	
	public Set<UserDTO> getUsers(){
		return users;
	}
	
	public void setUsers(Set<UserDTO> users){
		this.users = users;
	}

	
	public boolean isOptional(){
		return optional;
	}

	
	public void setOptional(boolean optional){
		this.optional = optional;
	}
}
